package xyz.bali16.module.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import xyz.bali16.module.blog.entity.ArticleTag;

import java.util.List;

/**
 * @author bali2 on 27/10/2021.
 * @version 1.0
 */
@Mapper
public interface ArticleTagMapper extends BaseMapper<ArticleTag> {

    List<Long> queryTagIdList(Long ArticleId);
    List<Long> queryArticleIdList(Long tagId);
    Long countByIds(Long tagId);

//    /**
//     * 根据tagID数组，批量删除
//     */
//    int deleteBatchByTagId(Long[] tagIds);
//    int deleteBatchByArticleId(Long[] articleIds);
}
